<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\Route;
// restful风格API

Route::resource(':version/app','app/:version.APP');
Route::resource(':version/user','app/:version.User');
Route::resource(':version/role','app/:version.Role');
Route::resource(':version/computer','app/:version.Computer');
Route::resource(':version/exchange','app/:version.Exchange');
Route::resource(':version/mycard','app/:version.Mycard');





//AppController
//登录
Route::rule(':version/login','app/:version.App/login');
//微信验证
Route::rule(':version/wxcheck','app/:version.App/wxCheck');
//测试
Route::rule(':version/test','app/:version.App/test');



//UserController
//个人信息页面
Route::rule(':version/getuserinfo','app/:version.User/getUserInfo');
//我的胜负记录
Route::rule(':version/myvictory','app/:version.User/myVictory');
//重置免费次数
Route::rule(':version/resetfreenumber','app/:version.User/resetFreeNumber');
//消息通知
Route::rule(':version/message','app/:version.User/message');
Route::rule(':version/editvote','app/:version.User/editVote');


//RoleController [人物展示]
Route::rule(':version/showrole','app/:version.Role/showRole');


//ComputerController [电脑匹配]
Route::rule(':version/match','app/:version.Computer/match');


//MyPropController [我的道具]
Route::rule(':version/showmyprop','app/:version.MyProp/showMyProp');

//MyCardController  [我的球卡]
Route::rule(':version/showmycard','app/:version.MyCard/showMyCard');

//ExchangeController  [兑换记录]
Route::rule(':version/changecard','app/:version.Exchange/changeCard');

